const CASHES: [u32; 8] = [1, 2, 5, 10, 20, 30, 50, 100];

pub fn dp_rec_mc(amount: u32) -> u32 {
    let mut a = amount;
    let mut count = 0;
    for cash in CASHES.iter().rev() {
        count += a / cash;
        a %= cash;
    }
    count
}
